class CreateBundles < ActiveRecord::Migration
  def self.up
    create_table :bundles do |t|
      t.references  :user
      t.string      :title
      t.string      :notes, :limit => 1.kilobyte
      t.timestamps
    end
    add_index :bundles, :user_id
  end

  def self.down
    remove_index :bundles, :user_id
    drop_table :bundles
  end
end
